package com.dupf.product.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;

public class ProductExchangeRate implements Serializable {
    /**
     * 表的主键。自增
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 组织id
     *
     * @mbg.generated
     */
    private Integer orgId;

    /**
     * 加元汇率
     *
     * @mbg.generated
     */
    private BigDecimal cad;

    /**
     * 印度卢比汇率
     *
     * @mbg.generated
     */
    private BigDecimal inr;

    /**
     * 墨西哥元汇率
     *
     * @mbg.generated
     */
    private BigDecimal mxn;

    /**
     * 欧元汇率
     *
     * @mbg.generated
     */
    private BigDecimal eur;

    /**
     * 挪威克罗钠 (NOK)汇率
     *
     * @mbg.generated
     */
    private BigDecimal nok;

    /**
     * 日元汇率
     *
     * @mbg.generated
     */
    private BigDecimal jpy;

    /**
     * 澳元汇率
     *
     * @mbg.generated
     */
    private BigDecimal aud;

    /**
     * 美元汇率
     *
     * @mbg.generated
     */
    private BigDecimal usd;

    /**
     * 英镑汇率
     *
     * @mbg.generated
     */
    private BigDecimal gbp;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Long ctime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public BigDecimal getCad() {
        return cad;
    }

    public void setCad(BigDecimal cad) {
        this.cad = cad;
    }

    public BigDecimal getInr() {
        return inr;
    }

    public void setInr(BigDecimal inr) {
        this.inr = inr;
    }

    public BigDecimal getMxn() {
        return mxn;
    }

    public void setMxn(BigDecimal mxn) {
        this.mxn = mxn;
    }

    public BigDecimal getEur() {
        return eur;
    }

    public void setEur(BigDecimal eur) {
        this.eur = eur;
    }

    public BigDecimal getNok() {
        return nok;
    }

    public void setNok(BigDecimal nok) {
        this.nok = nok;
    }

    public BigDecimal getJpy() {
        return jpy;
    }

    public void setJpy(BigDecimal jpy) {
        this.jpy = jpy;
    }

    public BigDecimal getAud() {
        return aud;
    }

    public void setAud(BigDecimal aud) {
        this.aud = aud;
    }

    public BigDecimal getUsd() {
        return usd;
    }

    public void setUsd(BigDecimal usd) {
        this.usd = usd;
    }

    public BigDecimal getGbp() {
        return gbp;
    }

    public void setGbp(BigDecimal gbp) {
        this.gbp = gbp;
    }

    public Long getCtime() {
        return ctime;
    }

    public void setCtime(Long ctime) {
        this.ctime = ctime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orgId=").append(orgId);
        sb.append(", cad=").append(cad);
        sb.append(", inr=").append(inr);
        sb.append(", mxn=").append(mxn);
        sb.append(", eur=").append(eur);
        sb.append(", nok=").append(nok);
        sb.append(", jpy=").append(jpy);
        sb.append(", aud=").append(aud);
        sb.append(", usd=").append(usd);
        sb.append(", gbp=").append(gbp);
        sb.append(", ctime=").append(ctime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductExchangeRate other = (ProductExchangeRate) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrgId() == null ? other.getOrgId() == null : this.getOrgId().equals(other.getOrgId()))
            && (this.getCad() == null ? other.getCad() == null : this.getCad().equals(other.getCad()))
            && (this.getInr() == null ? other.getInr() == null : this.getInr().equals(other.getInr()))
            && (this.getMxn() == null ? other.getMxn() == null : this.getMxn().equals(other.getMxn()))
            && (this.getEur() == null ? other.getEur() == null : this.getEur().equals(other.getEur()))
            && (this.getNok() == null ? other.getNok() == null : this.getNok().equals(other.getNok()))
            && (this.getJpy() == null ? other.getJpy() == null : this.getJpy().equals(other.getJpy()))
            && (this.getAud() == null ? other.getAud() == null : this.getAud().equals(other.getAud()))
            && (this.getUsd() == null ? other.getUsd() == null : this.getUsd().equals(other.getUsd()))
            && (this.getGbp() == null ? other.getGbp() == null : this.getGbp().equals(other.getGbp()))
            && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrgId() == null) ? 0 : getOrgId().hashCode());
        result = prime * result + ((getCad() == null) ? 0 : getCad().hashCode());
        result = prime * result + ((getInr() == null) ? 0 : getInr().hashCode());
        result = prime * result + ((getMxn() == null) ? 0 : getMxn().hashCode());
        result = prime * result + ((getEur() == null) ? 0 : getEur().hashCode());
        result = prime * result + ((getNok() == null) ? 0 : getNok().hashCode());
        result = prime * result + ((getJpy() == null) ? 0 : getJpy().hashCode());
        result = prime * result + ((getAud() == null) ? 0 : getAud().hashCode());
        result = prime * result + ((getUsd() == null) ? 0 : getUsd().hashCode());
        result = prime * result + ((getGbp() == null) ? 0 : getGbp().hashCode());
        result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
        return result;
    }
}